package com.yuand.mapper;

import com.yuand.entity.SysUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuandong
 * @since 2022-01-14
 */
@Repository
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

	/**
	 * 根据用户id删除对应的角色
	 * @param userId
	 * @return
	 */
	public int deleteUserRoleByUserId(Long userId);

	/**
	 *
	 * @param userIds
	 * @return
	 */
	public int deleteUserRole(Long[] userIds);
}
